package cj.web.kly.constants;

public enum NewTypeEnum {
	//1、图文新闻，荣誉奖项-横图，荣誉奖项-竖图
	TYPE_1("新闻类型-图文新闻",1),
	TYPE_2("荣誉奖项-横图",2),
	TYPE_3("荣誉奖项-竖图",3);

	private String name;
	private int value;
	
	private NewTypeEnum(String name, int value){
		this.name = name;
		this.value = value;
	}
	
	public static String getName(int value) {
        for (NewTypeEnum c : NewTypeEnum.values()) {
            if (c.getValue()==value) {
                return c.name;
            }
        }
        return null;
    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
